CREATE DATABASE AuthSystem;
GO

USE AuthSystem;
GO

CREATE TABLE Users (
    id UNIQUEIDENTIFIER PRIMARY KEY DEFAULT NEWID(),
    username NVARCHAR(50) UNIQUE NOT NULL,
    email NVARCHAR(100) UNIQUE NOT NULL,
    password_hash NVARCHAR(100) NOT NULL,
    created_at DATETIME DEFAULT GETDATE()
);
GO